<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    class App {
        a = 1;
        my = function(){
            console.log("my",this===obj)
        };
        fn = ()=>{
            console.log("fn",this === obj)
        }
        constructor() {
            this.b = 2;
        }
        my(){

        }
    }
    const obj = new App();
    // console.log(obj);
    // obj.my();
    // const my = obj.my;
    // my();

    // obj.fn();

    const fn = obj.fn;
    fn();
</script>
</html>